//
//  ModuleFirst_UserHomePageModel.m
//  艾听歌
//
//  Created by dllo on 16/5/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ModuleFirst_UserHomePageModel.h"
#import "ModuleFirst_UserTripsModel.h"

@implementation ModuleFirst_UserHomePageModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    
}


- (void)setTrips:(NSMutableArray *)trips{
    
    _trips = trips;
    
    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dic in trips) {
        ModuleFirst_UserTripsModel *MF_UTModel = [[ModuleFirst_UserTripsModel alloc]init];
        [MF_UTModel setValuesForKeysWithDictionary:dic];
        
        [array addObject:MF_UTModel];
    }
    
    _trips = [NSMutableArray arrayWithArray:array];
}

@end
